package com.ctms.system.service;

import com.ctms.system.domain.UserDO;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.Set;

@Service
public interface UserService {
	UserDO get(Long id);
	List<UserDO> list(Map<String, Object> map);
	List<UserDO> selectByName(Map<String, Object> map);
	int count(Map<String, Object> map);
	int save(UserDO user);
	int update(UserDO user);
	int remove(Long userId);
	int batchremove(List<Long> userIds);
	boolean exit(Map<String, Object> params);
	Set<String> listRoles(Long userId);

	int resetPwd(UserDO user);
	
	public UserDO findByName(String username);

	//查询所有的用户
	List<UserDO> selectAllUser();

	//通过id查询用户信息
	UserDO selectUserById(Integer userId);
	//管理员个人中心
	int updateAdmin(UserDO userDO);
	//通过tid查询用户信息
	List<UserDO> selectUserByTid(Integer tid);
}
